package com.easyctrl.ldy.net;

/**
 * 
 * @author Administrator
 * 
 */
public class Packet {

	private int id = AtomicIntegerUtil.getIncrementID();
	private byte[] data;

	public int getId() {
		return id;
	}

	public void pack(String txt) {
		this.data = txt.getBytes();
	}
	public void pack(byte[] data){
		this.data = data;
	}

	public byte[] getPacket() {
		return data;
	}
}
